package com.sun.emo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.emo.dto.DishDto;
import com.sun.emo.entity.Dish;

/**
 * @author 十三
 * @create 2022-10-16 11:36
 */
public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    public DishDto getByIdWithFlavor(Long id);

    public void updateWithFlavor(DishDto dishDto);

    public void remove(String[] ids);
}
